﻿using Daphne.Modularity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GameEngine;
using Microsoft.Practices.Unity;
using Daphne.GameShared;

namespace Daphne.GameEngineModule
{
    /// <summary>
    /// Game Engine Module
    /// </summary>
    public class GameEngineModule: ModuleBase
    {
        public override void Initialize()
        {
            // create the game engine adapter
            GameManagerAdapter adapter = new GameManagerAdapter();
            
            // register it
            Unity.RegisterInstance<IUserMoveEntering>(adapter);
            Unity.RegisterInstance<IGameBoardForEditor>(adapter);
            Unity.RegisterInstance<IGameBoard>(adapter);
        }
    }
}
